const {
  DataTypes,
  BaseModel
} = require('../baseModel')

class SystemLog extends BaseModel {}

SystemLog.initModel({
  user_id: {
    type: DataTypes.INTEGER,
    allowNull: false,
    comment: '操作用户'
  },
  user_name: {
    type: DataTypes.INTEGER,
    allowNull: false,
    comment: '用户名称'
  },
  opration: {
    type: DataTypes.STRING,
    comment: '操作变化'
  }
}, {
  comment: '系统日志',
  tableName: 'wec_sys_log'
})

module.exports = {
  SystemLog
}